package org.ffrl.design.factory.method;

import org.ffrl.design.factory.ChicagoStyleCheesePizza;
import org.ffrl.design.factory.ChicagoStyleClamPizza;
import org.ffrl.design.factory.ChicagoStyleVeggiePizza;
import org.ffrl.design.factory.Pizza;
import org.ffrl.design.factory.PizzaType;
import org.ffrl.design.factory.abstracts.NYPizzaIngredientFactory;

public class ChicagoStylePizzaStore extends PizzaStore {
    
    @Override
    Pizza createPizza(PizzaType type) {
        Pizza pizza = null;
        switch (type) {
            case Chessse:
                pizza = new ChicagoStyleCheesePizza(new NYPizzaIngredientFactory());
                break;
            case Veggie:
                pizza = new ChicagoStyleVeggiePizza();
                break;
            case Clam:
                pizza = new ChicagoStyleClamPizza();
                break;
            default:
                break;
        }
        return pizza;
    }
    
}
